<html><head><title>MaxMod.ModPlayer reference</title>
<link rel=stylesheet Type=text/css href='../../../../doc/bmxstyle.css'>
</head><body>
<table width=100% cellspacing=0><tr align=center><td class=small>&nbsp;</td>
<td class=small width=1%><b>MaxMod.ModPlayer:</b></td>
<td class=small width=1%><a href=#types class=small>Types</a></td>
<td class=small width=1%><a href=#modinfo class=small>Modinfo</a></td>
<td class=small width=1%><a href='../../../../mod/maxmod.mod/modplayer.mod/modplayer.bmx' class=small>Source</a></td>
<td class=small>&nbsp;</td></tr></table>
<br>
REDi.ModPlayer provides software mixed MOD/XM support for the LoadSound command.<b>
<p>
Streaming is provided by the MaxMod.AudioStream module.
<p>
Support and updates available at <a href="http://maxmod.googlecode.com" title="Goto Google Code">MaxMod Google Code Page</a>
<p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBnMniX5SF8Ye642ce8x8xQrrAJ5NNCn2ZW780Bb+kLZQu4ZpUBOrobLE1xKicnkPIowTZN6i40OcJ89NrbWA2K0PyAyTjiAl9wuD+YX2XcF+dulfiuGickZWAKMoMsF3KNhfg0Ff3s/7YtDCHqpG4Wuzn45Qu4IDog9w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kgZEwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA3MTEyMjA0MjIxNlowIwYJKoZIhvcNAQkEMRYEFIjgWTSZLxOSuYB7MuBIVqjwJuFYMA0GCSqGSIb3DQEBAQUABIGAupUygBvHfEX9EOjVStkRNENU42oc9BZdqmJZpc9orvIceo2dLyaUgTpLkeTaHv9+jSiy8iQBGQe+T4JSCv9w8DYQrOv9JYqMBoTVXnWX9I034qFfa2STHjBYB3f1wk+LzjPhU75XmOuQvOn9ok9hFuL90NFUmaiBOGQfQCnwXEE=-----END PKCS7-----
">
</form>
<h2><a name=types></a>Types Summary</h2><table class=doc width=100%>
<tr><td class=docleft width=1%><a href=#TAudioSampleLoaderMOD>TAudioSampleLoaderMOD</a></td><td class=docright>
Provides MOD/XM format support for the BlitzMax LoadSound command.
</td></tr>
</table>
<h2
 id=typesdet>Types
</h2>
<table class=doc width=100% cellspacing=3 id=TAudioSampleLoaderMOD>
<tr><td class=doctop colspan=2>Type TAudioSampleLoaderMOD Extends TAudioSampleLoader</td></tr>
<tr><td class=docleft width=1%>Description</td><td class=docright>Provides MOD/XM format support for the BlitzMax LoadSound command.</td></tr>
<tr><td class=docleft width=1%><a href=TAudioSampleLoaderMOD.bmx class=small>Example</a></td><td class=docright><pre>Import MaxMod.ModPlayer

'EnableOpenALAudio()
'SetAudioDriver("openal")
'SetAudioDriver("freeaudio")
SetAudioDriver("directsound")

Local file$ = RequestFile( "", MusicExtensions() )
Graphics 320,40,0 ; Cls ; DrawText("loading please wait...",10,10) ; Flip
Local t:Int = MilliSecs()
Local Sound:TSound = LoadSound( file, True )
Print (MilliSecs()-t)+" millisecs"
Local Channel:TChannel = PlaySound(Sound)

Repeat
	Cls
	If KeyHit(KEY_R) ResumeChannel(Channel)
	If KeyHit(KEY_P) PauseChannel(Channel)
	If KeyHit(KEY_S) StopChannel(Channel)
	If ChannelPlaying(channel)
		DrawText("Playing...",10,10)
	Else
		DrawText("Stopped...",10,10)
	EndIf
	Flip
Until AppTerminate() Or KeyHit(KEY_ESCAPE)</pre></td></tr>
</table>
<br>
<h2 id=modinfo>Module Information</h2>
<table width=100%>
<tr><th width=1%>MaxMod</th><td>ModPlayer 1.25</td></tr>
<tr><th width=1%>Author</th><td>REDi - Cliff Harman</td></tr>
<tr><th width=1%>License</th><td>MIT</td></tr>
</body></html>
